package com.atXiao.food.strategy;

/**
 * 策略模式上下文对象
 *
 * @author: lixiaoxiao
 * @date: 2024/1/11 9:56
 * @version: 1.0
 * @desc:
 */
public class PromotionStrategyContext {

    private IPromotionStrategy strategy;


    public PromotionStrategyContext(IPromotionStrategy strategy) {
        this.strategy = strategy;
    }

    /**
     * 执行业务逻辑
     */
    public void doExecute() {
        strategy.promotion();
    }


}
